﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HelloWorldOfYunHao
{
    class HelloWorldProgram
    {
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.BackgroundColor = ConsoleColor.DarkBlue;
            Console.WriteLine("Hello World!\n\t---- A simple program of YunHao.\n");

            MyHello myhl = new MyHello();
            myhl.printMessage(args);

            double money = 12345.1243;
            double total = 0;
            Console.WriteLine("Here we print today's record:");
            Console.WriteLine("{0:yyyy/MM/dd  dddd  hh:mm:ss}", System.DateTime.Now);
            for (int i = 1; i <= 10; i++)
            {
                total += money;
                Console.WriteLine("{0:D2} {1:C3}", i, money);
                money += 121.038;
            }
            Console.WriteLine("Total cost: ￥{0:E}", total);

            Console.ResetColor();
        }
    }
}
